var Handle      =   require("./EchoHandle.js").EchoHandle;
var HeroServer  =   require("../../server/heroServer");
var Protocol    =   require("../../rpc-json/json-server");


var option = new HeroServer.BindAdapterOption();
option.endpoint     = "tcp -h 127.0.0.1 -p 12306 -t 10000";
option.protocolName = "json";
option.protocol     = Protocol;
option.handleImp    = Handle;

var svr = HeroServer.createServer();
svr.start(option);
console.log("server started.");
